package com.itheima.set;

import com.itheima.domain.Student;

import java.util.TreeSet;

public class Demo04 {

    public static void main(String[] args) {
        TreeSet<Student> treeSet = new TreeSet<>();
        treeSet.add(new Student("鹿晗",28));
        treeSet.add(new Student("鹿晗222",28));
        treeSet.add(new Student("坤坤",29));
        treeSet.add(new Student("签签",40));
        System.out.println(treeSet);
    }
}
